/**
 * @description: 文件描述
 * @version: 0.0.1
 * @author: xxx
 * @Date: 2025-02-27 09:57:16
 */
import request from "./request";

export const login = (data) => {
  return request.post('/api/v1/auth/login', data)
}

export const editSubmitApi = (data) => {
  return request.post('/api/v1/auth/updatePassword', data)
}

export const getEmailApi = () => {
  return request.get('/api/admin/config/getEmailTO')
}
export const setEmailApi = (emailTO) => {
  return request.post(`/api/admin/config/setEmailTO?emailTO=${emailTO}`)
}

export const getListApi = (data) => {
  return request.post('/api/admin/view/page', data)
}
export const addApi = (data) => {
  return request.post('/api/admin/view/add', data)
}
export const updateApi = (data) => {
  return request.post('/api/admin/view/update', data)
}
export const deleteApi = (id) => {
  return request.post(`/api/admin/view/remove?id=${id}`)
}

